package com.xhl.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xhl.dao.IOrderItemDao;
import com.xhl.vo.OrderItemVO;

@Service
public class OrderItemService implements IOrderItemDao {

    @Autowired
    IOrderItemDao iOrderItemDao;

    @Override
    public List<OrderItemVO> queryOrderItemId(String oid) {
        return iOrderItemDao.queryOrderItemId(oid);
    }

    @Override
    public Long queryOrderItem(String uid) {
        return iOrderItemDao.queryOrderItem(uid);
    }

    @Override
    public OrderItemVO queryOrderItemOiid(String oiid) {
        return iOrderItemDao.queryOrderItemOiid(oiid);
    }

    @Override
    public Long queryNumberSum(String pid) {
        return iOrderItemDao.queryNumberSum(pid);
    }

    @Override
    public List<OrderItemVO> queryOrderItemInfo(String uid) {
        return iOrderItemDao.queryOrderItemInfo(uid);
    }

    @Override
    public void deleteOrderItem(String oiid) {
        iOrderItemDao.deleteOrderItem(oiid);
    }

    @Override
    public void updateOrderItem(String oiid, String number) {
        iOrderItemDao.updateOrderItem(oiid, number);
    }

    @Override
    public void updateOid(String oid, String oiid) {
        iOrderItemDao.updateOid(oid, oiid);
    }

    @Override
    public String orderSUM(String pid) {
        return iOrderItemDao.orderSUM(pid);
    }

    @Override
    public void shoppingTrolley(OrderItemVO oivo) {
        iOrderItemDao.shoppingTrolley(oivo);
    }

    @Override
    public OrderItemVO queryOrderItemById(String uid, String pid) {
        return iOrderItemDao.queryOrderItemById(uid, pid);
    }

    @Override
    public void updateOrderItemById(int oiid, String number) {
        iOrderItemDao.updateOrderItemById(oiid, number);
    }

}
